package frame.networks.viewers.viewer;

import java.awt.Color;
import java.awt.Paint;

import model.components.links.link.Link;

import org.apache.commons.collections15.Transformer;

public class LinkColorTransformer implements Transformer< Link, Paint >
{
	@Override
	public Paint transform( Link link )
	{
		if( link.isSelected() )
			return Color.GREEN;
		else
			return Color.BLACK;
	}
}
